package com.oop7.OldDriver;

public class Car {

	private int seatNum;
	private double displacement;

	public int getSeatNum() {
		return seatNum;
	}

	public void setSeatNum(int seatNum) {
		this.seatNum = seatNum;
	}

	public double getDisplacement() {
		return displacement;
	}

	public void setDisplacement(double displacement) {
		this.displacement = displacement;
	}

	public void start() {
		System.out.println("汽车启动");
	}

	public void brake() {
		System.out.println("汽车刹车");
	}

	public Car(int seatNum, double displacement) {
		setSeatNum(seatNum);
		setDisplacement(seatNum);
	}

}
